package com.gw.smscheck.service.business.callrecords;

import java.util.List;
import com.github.pagehelper.PageInfo;
import com.gw.smscheck.entity.business.alarm.AlarmLog;
import com.gw.smscheck.entity.business.callrecords.CallRecords;
/**
 * CallRecordsservice
 * @author pzr
 * @date 2018年10月29日
 */
public interface CallRecordsService {
	/**
	 * 新增
	 * @param callRecords
	 * @return
	 */
	public Integer add(CallRecords callRecords);
	/**
	 * 获取所有
	 * @return
	 */
	public List<CallRecords> findAll();
	/**
	 * 分页查询
	 * @param dto
	 * @return
	 */
	public PageInfo<CallRecords> pageSelect(CallRecords dto);
	/**
	 * 通过id获取对象
	 * @param dto
	 * @return
	 */
	public CallRecords findById(Integer dto);
	/**
	 * 通过phone获取对象
	 * @param dto
	 * @return
	 */
	public  List<CallRecords> findByPhone(CallRecords dto);
	/**
	 * 修改
	 * @param callRecords
	 * @return
	 */
	public Integer update(CallRecords callRecords);
	/**
	 * 批量删除
	 * @param ids
	 * @return
	 */
	public Integer delByIds(String[] ids);
	/**
	 * 根据周期获取通话记录
	 * @return
	 */
	public List<CallRecords> fingCallRecordsOut(CallRecords dto);
	/**
	 * 根据周期获取通话记录
	 * @return
	 */
	public List<CallRecords> fingCallRecordsIn(CallRecords dto);

}

